/******************************************************************************

	COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2010.

	This file is part of Maxsi Window Sample.

	Maxsi Window Sample is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or (at your
	option) any later version.

	Maxsi Window Sample is distributed in the hope that it will be useful, but
	WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
	or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
	License for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with Maxsi Window Sample. If not, see <http://www.gnu.org/licenses/>.

	MaxsiWindowSample.exe
	An example on how to use the Maxsi Window System for simple things.

	Main.h
	The example code on how to correctly create a simple Window and do simple
	things using the Maxsi Window System. This example file also demonstrates
	how to handle error conditions gracefully.

******************************************************************************/

#ifndef MAIN_H
#define MAIN_H

bool CreateWindow();
bool ResizeWindow();
//void WindowResized(GtkWindow *window, GdkEvent *event, gpointer data);
int main( int argc, char** argv);

class MaxsiWindowSample : public MaxsiWindow
{
	MAXSI_DECLARE_CHILD_CLASS(MaxsiWindowSample, MaxsiWindow);

public:
	MaxsiWindowSample();
	~MaxsiWindowSample();

public:
	virtual bool CreateControls();
	virtual bool DeleteControls();
	virtual bool UpdateControls();
	virtual MESTR* GetWindowTitle();
	virtual int GetDefaultWidth();
	virtual int GetDefaultHeight();
	virtual	bool UpdateWindowIcon();

public:
	MaxsiHandle	Header;
	MaxsiHandle	ProgressBar;
	MaxsiHandle	StatusLabel;
	MaxsiHandle	SubStatusLabel;
	MaxsiHandle	cmdStats;
	MaxsiHandle	cmdNews;
	MaxsiHandle	cmdError;
	MaxsiHandle	txtNews;
	MaxsiHandle	txtError;
	MaxsiHandle	SeparatorTop;
	MaxsiHandle	SeparatorBottom;

};

#endif
